<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="contentRelatedTypeList.heading" />
<c:set var="noToolBar" value="true" scope="request"/>
<content tag="buttons">

</content>


<form class="mainForm" name="contentRelatedTypeListForm" method="post">
	<c:set var="editURLPath" value="/content/contentRelatedType.html?doAction=edit&from=list" scope="page" />
	<div class="top clearfix">
		<ul class="tab">
			<li class="curr"><span><fmt:message key="menu.contentRelatedTypeList"/></span></li>
		</ul>
		<%@include file="/common/pagingOnlyTop.jsp"%>
	</div>
	<div class="data">
		<display:table name="${contentRelatedTypeList}" cellspacing="0" cellpadding="0" uid="contentRelatedType"
			class="list_table" export="false" requestURI="">
		    <display:column style="width: 25%;" property="relatedTitle" paramProperty="contentRelatedTypeId" paramId="contentRelatedTypeId" url="/content/contentRelatedType.html?doAction=edit" sortable="true" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="contentRelatedType.relatedTitle"/>
		    <display:column style="width: 15%;" property="typeName" sortable="true" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="contentRelatedType.typeName"/>
		    <display:column style="" sortable="true" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="contentRelatedType.ruleCode">
        		<fmt:message key="contentRelatedType.ruleCode${contentRelatedType.ruleCode}"/>
        	</display:column>	
		    <display:column style="width: 10%;"  sortable="true" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="contentRelatedType.position">
        		<c:choose>
					<c:when test="${contentRelatedType.isApplyToContent == 1 and contentRelatedType.isApplyToCategory == 0}">
						<fmt:message key="contentRelatedType.position.content"/>
					</c:when>
					<c:when test="${contentRelatedType.isApplyToContent == 0 and contentRelatedType.isApplyToCategory == 1}">
						<fmt:message key="contentRelatedType.position.category"/>
					</c:when>
				</c:choose>
        	</display:column>	
		    <display:column style="width: 10%;"  sortable="true" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="contentRelatedType.autoEval">
        		<fmt:message key="contentRelatedType.autoEval.s${contentRelatedType.autoEval}"/>
        	</display:column>	
		    <display:column style="width: 10%;"  sortable="true" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="contentRelatedType.status">
        		<fmt:message key="contentRelatedType.status.s${contentRelatedType.status}"/>
        	</display:column>	
		</display:table>
		<%@include file="/common/paging.jsp"%>
	</div>
</form>
<script type="text/javascript">
highlightTableRows("contentRelatedType");
</script>